const mongoose = require('../common/db');

const error = mongoose.Schema({
  type: String,
  error: Object,
});

error.statics.findAll = function (callBack) {
  this.find({}, callBack);
};

module.exports = mongoose.model('error', error);